import axios from "axios";

axios.defaults.baseURL = "http://localhost:3000"
// 首页底部数据接口
export const getMovieCardData = function () {
    return axios({
        url: '/movielist'
    })
}
// 影院热映数据接口
export const getHotMovie = function(){
    return axios({
        url: '/hotmovie'
    })
}
//豆瓣热映数据接口
export const getHotMovie2 = function(){
    return axios({
        url: '/hotmovie2'
    })
}
// 导出axios为axios2
export const axios2 = axios;
